import request from '@/utils/request'

// 查询抢房源脚本运行日志列表
export function listLogs(query) {
  return request({
    url: '/house/logs/list',
    method: 'get',
    params: query
  })
}

// 查询抢房源脚本运行日志详细
export function getLogs(log) {
  return request({
    url: '/house/logs/' + log,
    method: 'get'
  })
}

// 新增抢房源脚本运行日志
export function addLogs(data) {
  return request({
    url: '/house/logs',
    method: 'post',
    data: data
  })
}

// 修改抢房源脚本运行日志
export function updateLogs(data) {
  return request({
    url: '/house/logs',
    method: 'put',
    data: data
  })
}

// 删除抢房源脚本运行日志
export function delLogs(log) {
  return request({
    url: '/house/logs/' + log,
    method: 'delete'
  })
}
